package com.yenlien.traceyun.business.dao;

import com.yenlien.traceyun.business.entity.WarehouseOut;
import com.yenlien.traceyun.webase.dao.BaseJpaDao;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author: bigwangy@sina.com
 * @create: 2020-12-22
 * @description:
 **/
public interface WarehouseOutDao extends BaseJpaDao<WarehouseOut> {

    public WarehouseOut findBySourceCode(String sourceCode);

    @Query("select out.sourceCode from WarehouseOut out where out.storageManageDetailId=?1")
    public List<String> findByStorageManageDetailId(String storageManageDetailId);
}
